package com.lolo.sso.vo;

import lombok.Data;

@Data
public class CommonResult {
    private Integer code;
    private String msg;
    private String result;

    public CommonResult(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public CommonResult(Integer code, String msg, String result) {
        this.code = code;
        this.msg = msg;
        this.result = result;
    }

    public static CommonResult ok() {
        return new CommonResult(0, "");
    }

    public static CommonResult ok(String data) {
        return new CommonResult(0, "", data);
    }
}
